package handler

import (
	"log"

	profile "git.oschina.net/fanbuchi/xgggh/users/proto/user/profile"
	"golang.org/x/net/context"
)

type Profile struct{}

// Call is a single request handler called via client.Call or the generated client code
func (e *Profile) Create(ctx context.Context, req *profile.CreateReq, rsp *profile.CreateRsp) error {
	log.Print("Received Example.Call request")
	//rsp.Data = 1111111
	return nil
}

func (e *Profile) Query(ctx context.Context, req *profile.QueryReq, rsp *profile.QueryRsp) error {
	log.Print("Received Example.Call request")
	//rsp.Id = 1111111
	return nil
}


func (e *Profile) Update(ctx context.Context, req *profile.UpdateReq, rsp *profile.UpdateRsp) error {
	log.Print("Received Example.Call request")
	//rsp.Data = 1111111
	return nil
}

func (e *Profile) Delete(ctx context.Context, req *profile.DeleteReq, rsp *profile.DeleteRsp) error {
	log.Print("Received Example.Call request")
	//rsp.Data = 1111111
	return nil
}

func (e *Profile) Search(ctx context.Context, req *profile.SearchReq, rsp *profile.SearchRsp) error {
	log.Print("Received Example.Call request")
	//rsp.Data = 1111111
	return nil
}
